package com.m3958.logcollector.acl;

import org.springframework.security.access.annotation.Secured;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Component;

import com.m3958.logcollector.vo.RoleNames;

@Component
public class AclProtected {

    // @Secured(RoleNames.ACL_AUDITING)
    @PreAuthorize("hasPermission(43, 'com.m3958.logcollector.domain.Person', 'read')")
    public void hp() {
        System.out.println("i'm executed");
    }
}
